package org.moyakarta.rest;


public class Place
{

   //   public static void main(String[] args) throws IOException
   //   {
   //      Place place = new Place();
   //      place.setHash((String)"Hash1111");
   //      place.setName((String)"name2222");
   //      //      place.setMlng((Double)31.9804611206f);
   //      //      place.setMlat((Double)49.4566230774f);
   //      //      place.setLng((Double)31.9804611206f);
   //      //      place.setLat((Double)49.4566230774f);
   //      //      place.setZoom((Integer)15);
   //      //      place.setMapProvider((String)"google");
   //      //      place.setMapType((String)"sat");
   //      //      place.setMapW((Integer)854);
   //      //      place.setMapH((Integer)480);
   //      //      place.setCreatedBy((String)"createdBy");
   //      //      place.setCreationDate((Date) new Date());
   //
   //      System.out.println(place.toString());
   //   }

   private String hash;

   private String name;

   private double mlng;

   private double mlat;

   private double lng;

   private double lat;

   private int zoom;

   private String mapProvider;

   private String mapType;

   private int mapW;

   private int mapH;

   private String createdBy;

   //
   //   private Date creationDate;

   public Place()
   {
      // default
   }

   public void setHash(String hash)
   {
      this.hash = hash;
   }

   public String getHash()
   {
      return hash;
   }

   public void setName(String name)
   {
      this.name = name;
   }

   public String getName()
   {
      return name;
   }

   public void setMlng(double mlng)
   {
      this.mlng = mlng;
   }

   public double getMlng()
   {
      return mlng;
   }

   public void setMlat(double mlat)
   {
      this.mlat = mlat;
   }

   public double getMlat()
   {
      return mlat;
   }

   public void setLng(double lng)
   {
      this.lng = lng;
   }

   public double getLng()
   {
      return lng;
   }

   public void setLat(double lat)
   {
      this.lat = lat;
   }

   public double getLat()
   {
      return lat;
   }

   public void setZoom(int zoom)
   {
      this.zoom = zoom;
   }

   public int getZoom()
   {
      return zoom;
   }

   public void setMapProvider(String mapProvider)
   {
      this.mapProvider = mapProvider;
   }

   public String getMapProvider()
   {
      return mapProvider;
   }

   public void setMapType(String mapType)
   {
      this.mapType = mapType;
   }

   public String getMapType()
   {
      return mapType;
   }

   public void setMapW(int mapW)
   {
      this.mapW = mapW;
   }

   public int getMapW()
   {
      return mapW;
   }

   public void setMapH(int mapH)
   {
      this.mapH = mapH;
   }

   public int getMapH()
   {
      return mapH;
   }

   public void setCreatedBy(String createdBy)
   {
      this.createdBy = createdBy;
   }

   public String getCreatedBy()
   {
      return createdBy;
   }

   //   public void setCreationDate(Date creationDate)
   //   {
   //      this.creationDate = creationDate;
   //   }
   //
   //   public Date getCreationDate()
   //   {
   //      return creationDate;
   //   }

   @Override
   public String toString()
   {
      // to JSON
      StringBuilder sb = new StringBuilder();
      sb.append("Place:{")//
         .append("hash: ").append(hash).append(" ") //
         .append("name: ").append(name).append(" ") //
         .append("mlng: ").append(mlng).append(" ") //
         .append("mlat: ").append(mlat).append(" ") //
         .append("lng: ").append(lng).append(" ") //
         .append("lat: ").append(lat).append(" ") //
         .append("zoom: ").append(zoom).append(" ") //
         .append("mapProvider: ").append(mapProvider).append(" ") //
         .append("mapType: ").append(mapType).append(" ") //
         .append("mapW: ").append(mapW).append(" ") //
         .append("mapH: ").append(mapH).append(" ") //
         .append("createdBy: ").append(createdBy).append(" ") //
         //         .append("creationdate: ").append(creationDate) //
         .append("} ");
      return sb.toString();
   }

}
